package com.yinp.proapp.module.customview.bean;

import com.chad.library.adapter.base.entity.MultiItemEntity;

/**
 * @author :yinpeng
 * date      :2022/1/10
 * package   :com.yinp.proapp.module.customview.entity
 * describe  :
 */
public class CustomViewBean implements MultiItemEntity {
    public static final int Text = 1;
    public static final int MeView = 2;
    public static final int OtherView = 3;
    public static final int MixedView = 4;

    private int itemType;
    private String title;
    private String introduce;
    private String url;
    private String url2;

    public CustomViewBean(int itemType) {
        this.itemType = itemType;
    }

    public CustomViewBean(String introduce, int itemType, String title, String url) {
        this(itemType, title, url, null);
        this.introduce = introduce;
    }

    public CustomViewBean(int itemType, String title) {
        this(itemType, title, null);
    }

    public CustomViewBean(int itemType, String title, String url) {
        this(itemType, title, url, null);
    }

    public CustomViewBean(int itemType, String title, String url, String url2) {
        this.itemType = itemType;
        this.title = title;
        this.url = url;
        this.url2 = url2;
    }

    @Override
    public int getItemType() {
        return itemType;
    }

    public String getTitle() {
        return title;
    }

    public String getUrl() {
        return url;
    }

    public String getUrl2() {
        return url2;
    }

    public String getIntroduce() {
        return introduce;
    }
}
